<?php

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


use App\Http\Controllers\AuthController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\UserController;
use App\Http\Controllers\ReportMapController;
use App\Http\Controllers\OaLinkageController;
use App\Http\Controllers\WorkUserStatisticsController;
use App\Http\Controllers\AppController;

/**
 * JWT 用户鉴权基础路由.
 * laravel-box定义.
 */
Route::group([
    'prefix' => 'auth'
], function ($router) {
    $router->post('login', [AuthController::class, 'login']);
    $router->post('logout', [AuthController::class, 'logout']);
    $router->post('refresh', [AuthController::class, 'refresh']);
    $router->post('me', [AuthController::class, 'me']);
});

Route::any("/user/login",[UserController::class,'login']);    //登录
Route::any("/getUserInfoByCode",[UserController::class,'getUserInfoByCode']);    //授权获取openid
Route::any("/existOpenid",[UserController::class,'existOpenid']);    //是否存在openid


Route::any("/reportMap",[ReportMapController::class,'reportMap']);    //数据大屏 地图
Route::any("/reportTotal",[ReportMapController::class,'reportTotal']);    //数据大屏 工程总数量
Route::any("/reportEngineering",[ReportMapController::class,'reportEngineering']);    //数据大屏 工程列表
Route::any("/reportWorkUserTotal",[ReportMapController::class,'reportWorkUserTotal']);    //数据大屏 务工人员总数量
Route::any("/reportTeamTotal",[ReportMapController::class,'reportTeamTotal']);    //数据大屏 施工团队总数量

Route::any("/reportEngineeringList",[ReportMapController::class,'reportEngineeringList']);    //数据大屏 下拉框工程列表
Route::any("/reportWorkUserInfo",[ReportMapController::class,'reportWorkUserInfo']);    //数据大屏 项目人员综合查询

Route::get("/workUserStatistics",[WorkUserStatisticsController::class,'workUserStatistics']);    // 务工人员统计信息 天
Route::get("/workUserStatisticsMoon",[WorkUserStatisticsController::class,'workUserStatisticsMoon']);    // 务工人员统计信息 月

Route::any("/misdeed",[OaLinkageController::class,'misdeed']);    // A8联动，不端行为变动

Route::any("/getCompany",[AppController::class,'getCompany']);    // app获取公司列表
Route::any("/getTeam",[AppController::class,'getTeam']);    // app获取队伍
Route::any("/getEngineering",[AppController::class,'getEngineering']);    // app获取工程
Route::any("/getTypeWork",[AppController::class,'getTypeWork']);    // app获取工种

Route::post("/uploadImg",[AppController::class,'uploadImg']);    // 上传图片

Route::post("/addWorkUser",[AppController::class,'addWorkUser']);    // 新增务工人员
Route::any("/workUserList",[AppController::class,'workUserList']);    // 务工人员列表


Route::any("/getAppMessage",[AppController::class,'getAppMessage']);    // APP版本号

Route::any("/ziliaoRevoke",[AppController::class,'ziliaoRevoke']);    // 资料报审撤回
Route::any("/ziliaoMessage",[AppController::class,'ziliaoMessage']);    // 资料报审撤回


Route::any("/DKQsend",[AppController::class,'DKQsend']);    // 读卡器发送的身份证信息
Route::any("/uploadKIPSGateRecord",[AppController::class,'uploadKIPSGateRecord']);    // 考勤机回调
Route::any("/kaoQinStatistics",[AppController::class,'kaoQinStatistics']);    // 考勤综合统计


Route::any("/v1/record/face",[AppController::class,'maoTongFace']);    // 猫瞳考勤机刷脸记录
Route::any("/maoTongFaceStatistics",[AppController::class,'maoTongFaceStatistics']);    // 猫瞳考勤机刷脸 综合统计
Route::any("/v1/addFace",[AppController::class,'maoTongFaceEnter']);    // 猫瞳考勤机录入人脸



Route::middleware(['EnsureTokenIsValid'])->group(function () {

});

